/*
 * Transsion Top Secret
 * Copyright (C) 2021 Transsion Inc.
 * WeLife
 *  @author OS : naidan.xu (18646478)
 *  @version 1.0
 */

package com.transsion.wearlink.application

import android.app.Application
import android.content.Context
import com.huawo.opensdk.DeviceSDKProxy
/**
 * Created on 2021/8/23.
 * @desc:应用入口
 */
class App : Application() {
    /**
     * 最早执行这个，确保application被赋值
     */
    companion object {
        lateinit var sApplication: Application
    }

    override fun attachBaseContext(base: Context?) {
        sApplication = this
        super.attachBaseContext(base)
    }

    override fun onCreate() {
        super.onCreate()
        //HW init

      DeviceSDKProxy.init(sApplication)

    }
}